<meta charset="UTF-8">

<style>
    *{
        padding: 0;
        margin: 0;
    }
    html,body{
        width: 100%;
        background:skyblue;
        position: relative;
    }
    .blood{
        width: 200px;
        height: 50px;
        border: 5px solid green;
    }
    .GameOver{
        width: 600px;
        height: 350px;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        background: url(./img/游戏结束.webp) no-repeat;
        display: none;
        z-index: 1;
    }
</style>

<body>
    <div class="blood">
        <span style="display: block; width:200px; height: 50px; background: red;"></span>
    </div>
    <div class="GameOver"></div> 
</body>

<script src="./eliminateStar.js"></script>

<script>
    eliminateStar()
</script>